﻿// ## 2023/09/26 # 墨玉丹青 #  添加怀孕刷新


namespace 人物状态刷新
{
	class Main
	{

        Main()
        {
            pk::bind(107, pk::trigger107_t(person_state_cd)); //新的一天
            /*  pk::bind(171, pk::trigger171_t(soldier_die_callback_171));*/
        }

        void person_state_cd()
        {
            for (int i = 0; i < 武将_末; i++)
            {
                pk::person@ person = pk::get_person(i);
                personinfo_moyu@ person_t = @person_ex_moyu[person.get_id()];
                if (person_t.pregnancy > 0 && person_t.pregnancy <= 29)
                {
                    person_t.pregnancy = person_t.pregnancy - 1;
                }
            }
                
        }

	}

	Main main;
}